Partition Array Such That Maximum Difference Is K